Matplotlib

For this excercise, we have written the following code to load the stock dataset built into plotly express.

Question 1:

Select a stock and create a suitable plot for it. Make sure the plot is readable with relevant information, such as date, values.

Question 2:

You've already plot data from one stock. It is possible to plot multiples of them to support comparison.
To highlight different lines, customise line styles, markers, colors and include a legend to the plot.

Seaborn

First, load the tips dataset

Question 3:

Let's explore this dataset. Pose a question and create a plot that support drawing answers for your question.

Some possible questions:

On what day of the week do people (that give a tip) give the highest tip? And what is the difference between male and female?

Plotly Express

Question 4:

Redo the above exercises (challenges 2 & 3) with plotly express. Create diagrams which you can interact with.

The stocks dataset

Hints:

The tips dataset

Question 5:

Recreate the barplot below that shows the population of different continents for the year 2007.

Hints: